#include <stdio.h>
#include <unistd.h>
int main()
{
    int nums = 5;
    //FILE* fp = fopen("666.c", "w");
    pid_t id = fork();
    while (1)
    {
        printf("I am parint, pid:%d, ppid:%d\n", getpid(), getppid());
        sleep(1);//睡眠1秒
    }
	return 0;
}
